package com.example.bookshop.service.user;

import com.example.bookshop.entity.BaseGoods;
import com.example.bookshop.entity.Goods;
import com.example.bookshop.result.Result;

import javax.servlet.http.HttpSession;
import java.util.List;

public interface GoodsService {
    public List<BaseGoods> getListGoods();
    public List<BaseGoods>getCategoryGoods(String category,String state);
    public Goods findGoodsDetail(Integer id);
    public Result addGoods(Goods goods, HttpSession session);
    public List<BaseGoods> findGoodsByMall(HttpSession session);
    public Result modifyGoods(Goods goods);
    public Result deleteGoods(Integer id);
    public List<BaseGoods>searchGoods(Goods goods);

}
